#include <bits/stdc++.h>

using namespace std;
#define int long long
const int inf = 0x3f3f3f3f;

void solve()
{
	int n;
	cin >> n;
	if (n & 1)
	{
		cout << n << ' ' << 1 << ' ';
		for (int i = 2; i <= n - 1; i++) cout << i << ' ';
		cout << endl;
	}
	else cout << -1 << endl;
}

signed main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	int _ = 1;
	cin >> _;
	while (_--)
	{
		solve();
	}
	return 0;
}